package com.charactereducation.productcenter.controller;

import com.charactereducation.module.vo.ProductEntity;
import com.charactereducation.productcenter.service.ProductEntityService;
import com.charactereducation.webcore.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * Created by Baggio on 2018-6-25.
 */
@RestController
@RequestMapping("productEntity")
public class ProductEntityController extends BaseController {
    @Autowired
    ProductEntityService productEntityService;

    @GetMapping(value = "/getProductEntity")
    public ProductEntity getProductEntity(Map<String, String> map) {
        logger.info("getUserById");
        ProductEntity productEntity = productEntityService.getProductEntity(map);
        return productEntity;
    }

    @PostMapping("/modify")
    public void modify(@RequestParam ProductEntity productEntity) {


    }


}
